﻿#region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using JigLibX.Collision;
using JigLibX.Physics;
using JigLibX.Geometry;
using JigLibX.Math;
using Microsoft.Xna.Framework.Graphics;
#endregion


namespace sqengine.PhysicObjects
{
    public class ItmClock : MovableObject
    {
        public ItmClock(Game game, string ObjName, Model model, Matrix orientation, float ObjScale, Vector3 position) 
            : base(game,ObjName, model,orientation,ObjScale,position,true)
        {        
            OnAction += new ActionHandler(ItmClock_OnAction);            
        }

        void ItmClock_OnAction(object sender, ActionArg ca)
        {
            ((sqengine)CurrentGame).AddMessage(string.Format("It's {0}!", DateTime.Now.ToShortTimeString()),Color.White,4000,string.Empty);
        }


        public override void ApplyEffects(BasicEffect effect)
        {

        }
    }
}
